<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('新增公告')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-post-add">
			<div class="form-group">
				<label class="col-sm-3 control-label">公告标题：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="contentName" id="contentName" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">有效期至：</label>
				<div class="col-sm-8">
					<input class="form-control" type="date" name="contentTimeStop" id="contentTimeStop" required>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">公告内容：</label>
				<div class="col-sm-8">
					<textarea id="contentBody" name="contentBody" class="form-control"></textarea>
				</div>
			</div>
			<input class="form-control" type="hidden" name="contentUser" id="contentUser" value="若依" required>
		</form>
	</div>
	<th:block th:include="include :: footer" />
	<script type="text/javascript">
		var prefix = ctx + "cms/content";

		function submitHandler() {
			if ($.validate.form()) {
				$.operate.save(prefix + "/add", $('#form-post-add').serialize());
			}
		}
	</script>
</body>
</html>
